//
// Created by wze-zero on 2024/7/10 010.
//
#include <iostream>

using namespace std;

int main() {
    int arr[6], temp;
    int len = sizeof(arr) / sizeof(int);
    for (int i = 0; i < len; ++i) {
        cin >> arr[i];
    }
    for (int i = 0; i < len-1; ++i) {
        for (int j = 0; j < len-i-1; ++j) {
            if (arr[j] > arr[j+1]) {
                temp = arr[j];
                arr[j] = arr[j+1];
                arr[j+1] = temp;
            }
        }
    }
    for (int i = 0; i < len; ++i) {
        cout << arr[i] << " ";
    }
    cout << endl;
    return 0;
}